<?php 
  
  class RssItem {
    
    private $title;
    private $url;
    
    public function RssItem($title, $url) {
      $this->title = $title;
      $this->url = $url;
    }
    
    public function getTitle() {
      if (strlen($this->title)>25)
        return substr($this->title, 0, 25) . "...";
      return $this->title;
    }
    
    public function getURL() {
      return $this->url;
    }
    
  }
  
?>